home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Performance Co-Pilot 1.3
/
SGI Performance Co-Pilot 1.3.iso
/
dist
/
dist6.4
/
pcp.idb
/
usr
/
share
/
catman
/
u_man
/
cat3
/
PMAPI
/
_pmfindpmda.z
/
_pmfindpmda
Wrap
Text File
|
1997-04-03
|
3KB
|
67 lines
____PPPPMMMMFFFFIIIINNNNDDDDPPPPMMMMDDDDAAAA((((3333)))) ____PPPPMMMMFFFFIIIINNNNDDDDPPPPMMMMDDDDAAAA((((3333))))
NNNNAAAAMMMMEEEE
____ppppmmmmFFFFiiiinnnnddddPPPPMMMMDDDDAAAA - search for the filename of a PMDA
CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ppppccccpppp////ppppmmmmaaaappppiiii....hhhh>>>>
####iiiinnnncccclllluuuuddddeeee <<<<ppppccccpppp////iiiimmmmppppllll....hhhh>>>>
cccchhhhaaaarrrr ****____ppppmmmmFFFFiiiinnnnddddPPPPMMMMDDDDAAAA((((cccchhhhaaaarrrr ****nnnnaaaammmmeeee))))
cccccccc ............ ----llllppppccccpppp
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Given the _n_a_m_e of a PMDA (may be a DSO PMDA or a daemon PMDA), search for
a file of that name in a number of well known places.
If _n_a_m_e exists, ____ppppmmmmFFFFiiiinnnnddddPPPPMMMMDDDDAAAA returns immediately. Otherwise, a search is
conducted.
If _n_a_m_e is an absolute path (i.e. begins with ``/''), then the only
searching involves the equivalence of /_u_s_r/_p_c_p/_l_i_b and /_v_a_r/_p_c_p/_l_i_b. If
_n_a_m_e begins with either of these prefixes, then the name formed by
translating _n_a_m_e to use the other prefix is checked.
If _n_a_m_e is a relative path (i.e. does nnnnooootttt begin with ``/''), then
searching involves scanning each directory in the colon ``:'' separated
list defined by the value of the environment variable PPPPMMMMDDDDAAAA____PPPPAAAATTTTHHHH. If
PPPPMMMMDDDDAAAA____PPPPAAAATTTTHHHH is not set, the default search path is
``/var/pcp/lib:/usr/pcp/lib''.
The return value is NULL if the search fails, otherwise the path to the
PMDA file is returned. For success without searching, the return value
is _n_a_m_e, otherwise, the return value is the address of a static buffer
within ____ppppmmmmFFFFiiiinnnnddddPPPPMMMMDDDDAAAA.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
ppppmmmmccccdddd(1), PPPPMMMMAAAAPPPPIIII(3) and ppppmmmmNNNNeeeewwwwCCCCoooonnnntttteeeexxxxtttt(3).
CCCCAAAAVVVVEEEEAAAATTTT
____ppppmmmmFFFFiiiinnnnddddPPPPMMMMDDDDAAAA searches for a file base on the supplied _n_a_m_e. Success is
defined by existence of a file with the matching name, according to the
search algorithm. In the case of a successful search, the resultant file
may not be a PMDA at all, and a subsequent attempt to ddddllllooooppppeeeennnn(3) or
eeeexxxxeeeecccc(2) this file may well fail.
PPPPaaaaggggeeee 1111